package com.chinasoft.class6.group4;

import com.chinasoft.main.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class LiZhiHui implements TrueWord {
    List<String> wordList = new ArrayList<>();

    public LiZhiHui() {
        wordList.add("我要看阅兵！");
        wordList.add("中午吃什么");
        wordList.add("不食薯条");
    }

    public String getName() {
        return "李志辉";
    }

    public String getWord() {
        Random random = new Random();
        int index = random.nextInt(wordList.size());
        return this.wordList.get(index);
    }

}
